<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
</head>
<body>
    <form action="{:url('doLogin')}" method="post">
        <div>
            <label for="username">账号</label>
            <input type="text" name="username" id="username">
        </div>
        <div>
            <label for="password">密码</label>
            <input type="text" name="password" id="password">
        </div>
        <input type="submit" value="登录">
        <button type="button" onclick="register()">注册</button>
        <button type="button" onclick="findback()">找回</button>
        <a href="{:url('wxwork/OAuth/authWithQRCode')}">企业微信(扫码登录)</a>
    </form>
    <script>
        function register(){
            location.href="{:url('register')}";
        }
        function findback(){
            location.href="{:url('getbackPassword')}";
        }
    </script>
</body>
</html>
